/*
 * main.c
 *
 *  Created on: Apr 29, 2011
 *      Author: Andre
 */

#define DISABLED

#include <avr/io.h>

#include "ses/ses_led.h"
#include "ses/ses_button.h"

#ifndef DISABLED

void joystick_callback(){
	led_redToggle();
}

void rotary_callback(){
	led_yellowToggle();
}

int main(){
	led_redInit();
	led_greenInit();
	led_yellowInit();

	button_init();

	button_setJoystickButtonCallback(joystick_callback);
	button_setRotaryButtonCallback(rotary_callback);

	sei();

	while(1);
}

#endif
